﻿@model ArivisTests.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

@section styles {
<style type="text/css">
/* login page */
#loginForm {
    width: 400px;
    margin-top: 2em;
    margin-left: auto;
    margin-right: auto;
    padding: 2em;
    border: 1px solid #ddd;
    box-shadow: 5px 5px 5px #ddd;
}
    #loginForm h2 {
        margin-top: 0;
    }

    #loginForm ol {
        list-style:none;
        margin: 0;
        padding: 0;
    }

    #loginForm li {
        padding-bottom: 0.5em;
    }

    #loginForm fieldset {
        border: none;
        margin: 0;
        padding: 0;
    }

    #loginForm legend {
        display: none
    }


    #loginForm input[type="checkbox"],
    #loginForm input[type="submit"],
    #loginForm input[type="button"],
    #loginForm button {
        width: auto;
    }

    #loginForm label {
        display: block;
    }

        #loginForm label.checkbox {
            display: inline-block;
        }
</style>
}

<section id="loginForm">
<h2>arivis Tests</h2>
@using (Html.BeginForm("Login","Account", new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Log in Form</legend>
        <ol style="list-style:none">
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
        </ol>
        <input type="submit" value="Log in" />
    </fieldset>
}
</section>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
